#include "stm32f10x.h"

extern void PendSV_Trig(void);
extern void Usart_SendChar(uint8_t data);
extern void Usart_Init(void);

void PendSV_Handler(void)
{
    GPIOC->ODR ^= (1 << 13);
	  Usart_SendChar('A');
}


int main(void)
{
    RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
    GPIOC->CRH &= ~(0xF << 20);
    GPIOC->CRH |=  (0x1 << 20);
    GPIOC->ODR |= (1 << 13);

    Usart_Init();

    while (1)
    {
			int i=0;
        PendSV_Trig();
        for (i=0; i < 1000000; i++);
    }
}




void SystemInit(void){}


